home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Games / ISp Sample / Source / AboutBox.c next >
Encoding:
Text File  |  2000-09-28  |  1.5 KB  |  65 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        AboutBox.c
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Version:    xxx put version here xxx
  7.  
  8.     Copyright:    © 1999 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     File Ownership:
  11.  
  12.         DRI:                xxx put dri here xxx
  13.  
  14.         Other Contact:        xxx put other contact here xxx
  15.  
  16.         Technology:            xxx put technology here xxx
  17.  
  18.     Writers:
  19.  
  20.         (BWS)    Brent Schorsch
  21.  
  22.     Change History (most recent first):
  23.  
  24.        <SP1>      7/1/99    BWS        first checked in
  25. */
  26.  
  27. //•    ————————————————————————————————————————    Includes
  28.  
  29. #include <Dialogs.h>
  30. #include <TextUtils.h>
  31.  
  32. #include "AboutBox.h"
  33. #include "AppShellResources.h"
  34.  
  35. //•    ————————————————————————————————————————    Private Definitions
  36. //•    ————————————————————————————————————————    Private Types
  37. //•    ————————————————————————————————————————    Private Variables
  38. //•    ————————————————————————————————————————    Private Functions
  39. //•    ————————————————————————————————————————    Public Variables
  40.  
  41. //•    ————————————————————    AboutBox
  42.  
  43. void
  44. AboutBox(void)
  45. {
  46. Str255                    title, copyright;
  47. SInt16                    itemHit;
  48. AlertStdAlertParamRec    pb;
  49.  
  50.     GetIndString(title, kSTRn_AboutBoxStrings, 1);
  51.     GetIndString(copyright, kSTRn_AboutBoxStrings, 2);
  52.  
  53.     pb.movable = false;
  54.     pb.helpButton = false;
  55.     pb.filterProc = nil;
  56.     pb.defaultText = (StringPtr) kAlertDefaultOKText;
  57.     pb.cancelText = nil;
  58.     pb.otherText = nil;
  59.     pb.defaultButton = kStdOkItemIndex;
  60.     pb.cancelButton = kStdCancelItemIndex;
  61.     pb.position = kWindowAlertPositionParentWindowScreen;
  62.  
  63.     StandardAlert(kAlertPlainAlert, title, copyright, &pb, &itemHit);
  64. }
  65.